<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <title>
        <%= articleData.title %>
    </title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="/stylesheets/style.css" />
    <link rel="stylesheet" href="/views/style/initial-style.css" />
    <script src="/javascripts/vue.global.js"></script>
    <link rel="stylesheet" href="/views/header/style.css" />
    <link rel="stylesheet" href="/views/my-footer/my-footer.css" />
    <link rel="stylesheet" href="/views/my-user-info/userinfo.css" />
    <link rel="stylesheet" href="/views/my-lable/mylable.css" />
    <link rel="stylesheet" href="/views/wbrs/wbrs.css" />
    <link rel="stylesheet" href="/views/static/css/home.css" />
    <link rel="stylesheet" href="/views/article-details/article-details.css" />
    <script src="/views/static/js/global.js"></script>
    <script src="/views/static/js/sethtml.js"></script>
</head>
<body>
    <div id="app">
        <%- include("../header/header" , {blogTitle : blogTitle , navList : navList, userInfo : {}}) %>
        <div class="article-header-box">
            <div class="slider">
                <div><%= articleData.title %></div>
                <div class="watermark">@zs.duan</div>
            </div>
        </div>
        <div class="main-box">
            <div class="main">
                <div class="left">
                    <div class="article-item">
                        <div class="articl-wrop">
                            <div class="title"><%= articleData.title %></div>
                            <div class="reading-all">
                                <div class="read">阅读量:<%= articleData.reading %></div>
                                <div class="time"><%= articleData.addtime %></div>
                                <div class="type">
                                    <a href="../moreArticle/<%= articleData.typeID %>"><%= articleData.type %></a>
                                </div>
                            </div>
                            <div class="html-wrop">
                                <%# decodeURIComponent(articleData.content) %>
                            </div>
                            <div class="read-more">
                                <a href="../moreArticle/<%= articleData.typeID %>">阅读更多内容</a>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="right">
                    <%- include("../my-user-info/my-user-info" , {userInfo : userInfo}) %>
                    <%- include("../my-lable/my-lable" , {lableList : lableList}) %>
                    <%- include("../wbrs/wbrs" , {wbrsList : wbrsList}) %>
                </div>
            </div>
        </div>
        <%- include("../my-footer/my-footer" , {runTime : runTime , friendLink : friendLink }) %>
    </div>  
</body>
<script src="/views/static/js/article-details.js"></script>
<script>
    let htmlWrop = document.querySelector('.html-wrop');
    let html = `<%= articleData.content %>`;
    html = decodeURIComponent(html)
    window.setHtml(
        {
            html : html,
            success : (res)=>{
                htmlWrop.innerHTML = res;
            }
        }
    );
</script>
</html>
